<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'emailsettings-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'smtpserver'); ?>
		<?php echo $form->textField($model,'smtpserver',array('size'=>60,'maxlength'=>80)); ?>
		<?php echo $form->error($model,'smtpserver'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'smtploginuser'); ?>
		<?php echo $form->textField($model,'smtploginuser',array('size'=>60,'maxlength'=>80)); ?>
		<?php echo $form->error($model,'smtploginuser'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'smtppassword'); ?>
		<?php echo $form->passwordField($model,'smtppassword',array('size'=>46,'maxlength'=>80)); ?>
		<?php echo $form->error($model,'smtppassword'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'smtpport'); ?>
		<?php echo $form->textField($model,'smtpport',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'smtpport'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'loginmethod'); ?>
		<?php echo $form->dropDownList($model,'loginmethod',array(0=>'Auto Login'
                    ,1=>'Auth Login')); ?>
		<?php echo $form->error($model,'loginmethod'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ssl'); ?>
		<?php echo $form->checkBox($model,'ssl'); ?>
		<?php echo $form->error($model,'ssl'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'starttls'); ?>
		<?php echo $form->checkBox($model,'starttls'); ?>
		<?php echo $form->error($model,'starttls'); ?>
	</div>
        <div class ="row">
            <h4>&nbsp;Invoice Forms</h4>
            
        </div>
       

	<div class="row">
		<?php echo $form->labelEx($model,'invoiceemaildisplayname'); ?>
		<?php echo $form->textField($model,'invoiceemaildisplayname',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'invoiceemaildisplayname'); ?>
	</div>
        
        
	<div class="row">
		<?php echo $form->labelEx($model,'invoicereturnemail'); ?>
		<?php echo $form->textField($model,'invoicereturnemail',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'invoicereturnemail'); ?>
	</div>

        <div class ="row">
            <h4>&nbsp;PO Order Forms</h4>
        </div>
        
	<div class="row">
		<?php echo $form->labelEx($model,'poemaildisplayname'); ?>
		<?php echo $form->textField($model,'poemaildisplayname',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'poemaildisplayname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'poreturnemail'); ?>
		<?php echo $form->textField($model,'poreturnemail',array('size'=>60,'maxlength'=>150)); ?>
		<?php echo $form->error($model,'poreturnemail'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'sendcopy'); ?>
		<?php echo $form->checkBox($model,'sendcopy'); ?>
		<?php echo $form->error($model,'sendcopy'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->